package FiveHomeworkDesign.Observer;

/**
 * @author 北巷_东坡
 * @date 2022/11/21 22:17
 * @computer 10741
 */
public class Client206 {
    public static void main(String[] args) {
        Observer206 p1,p2,p3,p4;
        p1 = new Player206("ldp");
        p2 = new Player206("mick");
        p3 = new Player206("LDP");
        p4 = new Player206("206");

        Allay206 allay206 = new ConcreteAllay("The Best");
        allay206.join(p1);
        allay206.join(p2);
        allay206.join(p3);

        p2.beAttacked();
        p4.beAttacked();
        allay206.quit(p1);
        p3.beAttacked();
    }
}
